package com.example.job.domain.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.example.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_message")
public class Message extends BaseEntity {
    
	@TableId(value = "MESSAGE_ID", type = IdType.ASSIGN_ID)
	@Schema(description = "消息 id")
	private Long messageId;

	@Schema(description = "消息内容id")
	private Long textId;

	@Schema(description = "发送人id")
	private Long sendId;

	@Schema(description = "接收人id")
	private Long recId;

	@Schema(description = "查看状态（0 未查看 1已查看）")
	private Integer status;

	public Message(Long textId, Long sendId, Long recId, Integer status) {
		this.textId = textId;
		this.sendId = sendId;
		this.recId = recId;
		this.status = status;
	}
}